Conditions | 2 |
Total Lines | 21 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { |
||
46 | |||
47 | function assigner( |
||
48 | env: Readonly<Env>, |
||
49 | files: readonly string[], |
||
50 | reader: Reader, |
||
51 | envPatch: Record<string, unknown> |
||
52 | ) { |
||
53 | const {length} = files |
||
54 | |||
55 | for (let i = length; i--; ) |
||
56 | // NB commutative |
||
57 | $assign( |
||
58 | envPatch, |
||
59 | parse( |
||
60 | reader(files[i]), |
||
61 | env, |
||
62 | envPatch |
||
63 | ) |
||
64 | ) |
||
65 | |||
66 | return envPatch |
||
67 | } |
||
68 |